.form-designer-layout {
  width: 100%;
  height: 100%;
  display: flex;
}

.form-designer-footer,
.form-designer-header {
  height: fit-content;
  width: 100%;
}

.form-designer-container {
  flex: 1;
  display: flex;
  overflow: auto;
  flex-direction: column;
  align-items: center;
}

.form-designer-side {
  width: fit-content;
}

.form-designer-body {
  height: 100%;
  padding: 30px;
  flex: 1;
  overflow: auto;
  width: 100%;
  background: #666666;
}

.form-designer-layout *::-webkit-scrollbar{
  width:8px;
  height:8px;
}
.form-designer-layout *::-webkit-scrollbar-track{
  background: #f6f6f6;
  border-radius:2px;
}
.form-designer-layout *::-webkit-scrollbar-thumb{
  background: #cdcdcd;
  border-radius:2px;
}
.form-designer-layout *::-webkit-scrollbar-thumb:hover{
  background: #747474;
}
.form-designer-layout *::-webkit-scrollbar-corner {
  background: #f6f6f6;
}

.form-designer-left-side {
  width: 250px;
  height: 100%;
  background: white;
  z-index: 20;
}

.form-designer-right-side .ant-tabs-nav-scroll {
  text-align: center;
}

.form-designer-right-side .ant-tabs-bar {
  margin: 0 !important;
  background: white;
}

.form-designer-right-side .ant-tabs-nav .ant-tabs-tab {
  margin: 0;
}
.form-designer-right-side {
  width: 250px;
  height: 100%;
  background: white;
}

.form-designer-left-side,
.form-designer-right-side {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .50);
}
.form-designer-left-side .ant-tabs-nav-container,
.form-designer-right-side .ant-tabs-nav-container {
  margin-top: 0;
}

.form-designer-content {
  background: white;
  min-width: 600px;
  min-height: 100%;
  width: 900px;
  margin: auto;
}

.form-designer-header-comp {
  background: yellow;
  overflow: auto;
  user-select: none;
}
.form-designer-footer {
  width: 100%;
  overflow: auto;
}
.form-designer-footer-comp {
  height: 30px;
  background: #272727;
  overflow: auto;
  display: flex;
  width: max-content;
  min-width: 100%;
  padding: 0 0 3px 10px;
}

.form-designer-left-side .ant-tabs-bar {
  margin: 0 !important;
  background: white;
}

.form-designer-left-side .ant-tabs-nav-scroll {
  text-align: center;
}

.field-container-section {
  width: 100%;
  background: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  box-sizing: border-box;
  padding: 0 10px;
}

.field-container-section > *:hover {
  color: #409EFF;
  border: 1px solid #409EFF;
}
.field-container-section > * {
  color: #606266;
  border: 1px solid #D4D7DE;
  border-radius: 4px;
  text-align: center;
  padding: 10px;
  user-select: none;
  cursor: pointer;
}

.field-container .ant-divider {
  user-select: none;
}
/*单据设计根节点样式*/
.form-designer-content {
  padding: 10px;
}

.form-designer-content .dragin-root-placeholder:after {
  content: '放在这里';
  color: #ff9900;
}
.form-designer-content .dragin-root-placeholder {
  height: 32px;
  user-select: none;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ff9900;
  border-radius: 4px;
  box-sizing: border-box;
  color: #409EFF;
  width: calc(100% - 4px);
  margin-left: 2px;
}

.field-component:hover {
  border: 1px solid #409EFF;
}

.field-component {
  width: 100%;
  border: 1px solid #CDD0D6;
  color: #909399;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.field-component:hover .field-bar-container {
  display: block;
}

div[data-role=field]:hover .field-bar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #626262;
  border-radius: 4px;
  width: 25px;
  user-select: none;
  cursor: pointer;
}

.field-bar-container * {
  user-select: none;
}
.field-bar-container {
  position: absolute;
  top: 0;
  right: 0;
  text-align: right;
  display: none;

}

[data-role=layout]:hover .layout-bar-container {
  display: block;
  user-select: none;
}

.layout-bar-container {
  position: sticky;
  left: calc(100% - 135px);
  top: calc(100%);
  margin-top: -35px;
  margin-bottom: 6px;
  display: none;
  width: fit-content;
  border-radius: 4px;
  border: 1px solid #d3d3d3;
  z-index: 10;
  background: rgba(255, 255, 255);
}

.layout-bar-container .layout-bar-button:hover {
  color: #409EFF;
}

.layout-bar-container .layout-bar-button {
  margin-right: 2px;
  padding: 5px;
  font-size: 18px;
}

.layout-bar-container .layout-bar-button[data-action=resolveLayoutWidth],
.layout-bar-container .layout-bar-button[data-action=removeLayout] {
  cursor: pointer;
}
.layout-bar-container .layout-bar-button[data-action=move] {
  cursor: move;
}
.grid-design {
  --hover-border-color: #409EFF;
  --hover-background-color: rgba(64, 158, 255, 0.08);
}

.grid-design .design-table-body {
  position: relative;
}
.grid-design .design-table-body:hover table:after {
  display: block;
}
.grid-design .design-table-body table:after {
  content: ' ';
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
  border: 1px dashed var(--hover-border-color) ;
  pointer-events: none;
}

.grid-design *[data-role=layout]:hover *[data-sub-table-role=header] td,
.grid-design *[data-role=layout]:hover *[data-sub-table-role=footer] td {
  background: var(--hover-background-color);
}
.field-wrapper {
  padding: 2px;
  position: relative;
  border: 1px dashed rgba(64, 158, 255, 0) !important;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.form-designer-content *[data-role=field] .field-component {
  transition: box-shadow 300ms ease;
  /*margin: 2px 0;*/
}

.select-field .design-button,
.select-field .field-component {
  border: 1px solid #409EFF !important;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.35);
}

.form-designer-footer-view-item {
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EBEDF0;
  border: 1px solid #666666;
  user-select: none;
  cursor: pointer;
  margin-right: -1px;
  border-top: none;
}

.form-designer-footer-view-item-selected .form-designer-footer-view-icon {
  background: #409EFF;
}
.form-designer-footer-view-item-selected {
  background: #666666;
  border-top: none;
}

.form-designer-footer-icon-button {
  width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  user-select: none;
  border: 1px solid #5e5e5e;
  border-top: 0;
}

.form-designer-footer-view-icon {
  width: 8px;
  height: 8px;
  margin-top: 2px;
  border-radius: 6px;
  background: #3d3d3d;
  margin-right: 5px;
}

.form-designer-field-list {

}

.form-designer-field-list-item {
  height: 35px;
  display: flex;
  padding-left: 40px;
  align-items: center;
  border-bottom: 1px solid #CDD0D6;
  cursor: pointer;
  user-select: none;
}

.form-designer-field-list-item-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
  background: white;
}

.form-designer-field-list-item-action {
  padding-right: 10px;
}

.form-designer-field-list-item-selected .form-designer-field-list-item-title,
.form-designer-field-list-item-selected {
  background: #409EFF !important;
  color: white;
}

.form-domain-action-icon {
  margin-right: 5px;
  display: inline-block;
}

.design-button {
  display: flex !important;
  align-items: center !important;
  width: fit-content;
  justify-content: center;
}

.design-button-icon-has-padding {
  padding-right: 5px;
}

.design-button-icon {
  display: inline-block;
  padding-top: 2px;
}

.content div[data-role=field],
.content .design-button {
  width: 100% ;
}

.is-moving .field-component {
  box-sizing: border-box;
  border: 1px dashed #409EFF !important;
}

.is-moving .design-table {
  border: 1px dashed #409EFF !important;
}

.is-moving .design-table *,
.is-moving .field-component * {
  opacity: 0;
}

.is-moving *[draggable=true] {
  visibility: visible !important;
}


.design-table-body .content .dragin-root-placeholder {
  position: absolute;
  height: 100%;
  width: 100%;
  margin: 0;
  left: 0;
  top: 0;
}

.icon-left-colapse {
  display: block;
  border-radius: 0 14px 14px 0;
  right: -25px;
  top: 5px;
  text-align: right;
  padding-right: 8px;
  cursor: pointer;
  border-left: 1px solid #bcbfc5;
}

.icon-right-colapse {
  display: block;
  border-radius: 14px 0 0 14px;
  left: -25px;
  top: 5px;
  padding-left: 8px;
  cursor: pointer;
  border-right: 1px solid #bcbfc5;
}

.dragging-shadow-img div,
.dragging-shadow-img tr,
.dragging-shadow-img td {
  background: none !important;
}
.dragging-shadow-img {
  position: fixed;
  z-index: 1000;
  left: 0;
  bottom: 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  border-radius: 4px;
}

.sub-form-action-button {
  width: fit-content;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
}

.field-text-area {
  min-height: 60px;
}